<!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
<stack>
<name>in</name>
<id>-1</id>
<cardCount>4</cardCount>
<cardID>2268</cardID>
<listID>3818</listID>
<cantModify><false /></cantModify>
<cantDelete><false /></cantDelete>
<cantAbort><false /></cantAbort>
<cardSize>
<width>480</width>
<height>272</height>
</cardSize>
<script>--------------------------------------------------------------- This stack written by Jeff Benjamin. 1991.-- It is freeware.-- A first hack at appleEvents.---------------------------------------------------------------------------------------------------------------------------- Process all appleEvents ---------------------------------------------------------------on appleEvent eventClass,eventID,senderif eventID = "getM" then -- handle getMessage eventrequest appleEvent data -- get data sentif it is empty then pass appleEvent -- do nothing if data is nullgetMessage itreply "Finished!"end ifif eventID = "ansr" then -- handle reply from Send buttonrequest appleEvent data -- get data sentif it is empty then pass appleEvent -- do nothing if data is nullgotReply itend ifselect after text of cd fld "entry"pass appleEventend appleEventon getMessage theParamsset the itemDelimiter to "∆"get theParamsif item 4 of it is true then alertUser item 1 of itput item 1 of it && the date && the time & return after cd fld "transcript"put item 2 of it & return after cd fld "transcript" -- display messageif item 3 of it is true then play "conference notify"setTranscriptScrollend getMessage--------------------------------------------------------------- scroll to bottom of text ---------------------------------------------------------------on setTranscriptScrollset the scroll of cd fld "transcript" to¬the textHeight of cd fld "transcript" * the number of lines of cd fld "transcript"end setTranscriptScroll--------------------------------------------------------------- Bring HC to front and show message ---------------------------------------------------------------on alertUser fromWhombeepdoMenu "hyperCard"answer "You have an important message from: " & return &¬fromWhom with "Show me!"end alertUseron openStack--------------------------------------------------------------- Check the system version ---------------------------------------------------------------get the systemVersionif it < 7.0 thenbeepanswer "This stack will not function on your system (" &¬it & "). " & return & "Upgrade to System 7.0 or greater." with¬"OK" or "Home"if it is "Home" thengo homeexit to hyperCardend ifend if--------------------------------------------------------------- Check the HyperCard version ---------------------------------------------------------------get the version of hyperCardif it < 2.1 thenbeepanswer "This stack will not function with this version of HyperCard (" &¬it & "). " & return & "Upgrade to 2.1 or greater." with¬"OK" or "Home"if it is "Home" thengo homeexit to hyperCardend ifend if--------------------------------------------------------------- initialize card fields ---------------------------------------------------------------go cd 1put empty into cd fld "transcript"put empty into cd fld "entry"createMenufillGlobalsend openStack--------------------------------------------------------------- handle reply ---------------------------------------------------------------on gotReply theReplybeepanswer cd fld "onlineUsers" && " appears ready now"end gotReply--------------------------------------------------------------- menu ---------------------------------------------------------------on createMenuif there is a menu "Conference" then exit createMenucreate menu "Conference"put createMenuItems() into menu "Conference" with menuMsg createMenuMsgs()end createMenufunction createMenuItemsreturn "Preferences..." & returnend createMenuItemsfunction createMenuMsgsreturn "preferences"end createMenuMsgson closeStackdelete menu "Conference"end closeStack--------------------------------------------------------------- Prefs ---------------------------------------------------------------on preferencesgo cd "preferences"end preferences--------------------------------------------------------------- fillGlobals ---------------------------------------------------------------on fillGlobalsglobal gTimeoutput cd fld "timeout" of cd "preferences" into gTimeoutend fillGlobals</script>